package com.czwx.bee.business.manager.modular.sys.model;
import com.czwx.bee.base.common.model.CommonModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.core.annotatoin.Table;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "bp_user")
@ApiModel(value="User",description="用户对象")
public class User  extends CommonModel{

	@ApiModelProperty(value="ID",name="id")
	private Long id ;

	@ApiModelProperty(value="年龄",name="age")
	private Integer age ;

	@ApiModelProperty(value = "组织架构id")
	private Integer organizationId ;

//	@NotNull(message = "商户id不能为空")
////	@ApiModelProperty(value = "渠道id")
	private Long drainageId;

	@ApiModelProperty(name="性别",notes = "0男,1女")
	private Integer sex ;

	@ApiModelProperty(name = "状态",notes = "0停用,1正常")
	private Integer status ;

	@ApiModelProperty(value = "用户类型",notes = "0.超级管理员1.商户管理员2.商户用户")
	private Integer userType ;

	@ApiModelProperty(value = "职责")
	private String jobTitle ;

	@ApiModelProperty(value = "登录账号")
	@NotNull(message = "用户名不能为空")
	@Length(min = 5, max = 20, message = "用户名5-20长度")
	private String loginName ;

	@ApiModelProperty(value = "姓名")
	private String name ;

	@ApiModelProperty(value = "密码")
//	@NotNull(message = "密码不能为空")
	private String password ;

	@ApiModelProperty(value = "电话")
	private String phone ;

	@ApiModelProperty(value = "备注")
	private String description;

	@ApiModelProperty(value = "备注")
	private String rid;
}
